package com.cash.loan.common.exception;

import com.cash.loan.core.exception.GunsException;

/**
 * redis异常工具类
 *
 * Created by Administrator on 2017/5/27.
 */
public class RedisException extends GunsException{
    private static final long serialVersionUID = -2678203134198782909L;

    public static final String MESSAGE = "redis访问异常";

    public RedisException() {
        super(MESSAGE);
    }

    public RedisException(String message) {
        super(message);
        this.code = BizExceptionEnum.REDIS_ERROR.getCode();
    }

    public RedisException(int code, String message) {
        super(message);
        this.code = code;
    }

    public RedisException(String message, Throwable cause) {
        super(message, cause);
        this.code = BizExceptionEnum.REDIS_ERROR.getCode();
    }

    public RedisException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public RedisException(Throwable cause) {
        super(cause);
        this.code = BizExceptionEnum.REDIS_ERROR.getCode();
    }
}